﻿using System;

namespace MediaController.Subs.Provider
{
    public class SubtitleResult : IComparable
    {
        public string Name { get; set; }

        public string CDCount { get; set; }

        public string Link { get; set; }

        public int Priority { get; set; }


        public override string ToString()
        {
            return Name;
        }

        public int CompareTo(object obj)
        {
            var vale = ((SubtitleResult) obj).Priority.CompareTo(Priority);
            return vale;
        }
    }
}